/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.DigitalInput;
/**
 *
 * @author Developer
 */
public class Dumper {
    public static final boolean debugging = true;
    private Victor dumperMotor;
    private static final double SPEED = 0.25;
    //Joystick and buttons
    Joystick joystick;
    private int upButton, downButton;
    
    public Dumper(Joystick driveJoystick, int DumperMotor, int upButton, int downButton) {
        joystick = driveJoystick;
        upButton = upButton;
        downButton = downButton;
        dumperMotor = new Victor(DumperMotor);
    }
    public void dumperControl() {
        if (joystick.getRawButton(upButton)) {
            dumperMotor.set(SPEED);
        } else if (joystick.getRawButton(downButton)){
            dumperMotor.set(-SPEED);
        } else {
            dumperMotor.set(0.0);
        }
    }
}
        